package vn.fpt.snake.view;

import javax.swing.*;

import vn.fpt.snake.commons.Constants;

public class BoardJFrame extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JPanel board;
	public BoardJFrame(){
		try{
			board = new Board(this);
			add(board);
			setResizable(false);
			setTitle(Constants.TITLE);
			setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		}catch (Exception e) {
			// TODO: handle exception
			JOptionPane.showMessageDialog(this, e.getMessage(), "ERROR", JOptionPane.ERROR_MESSAGE);
		}
	}
}
